package com.shensi.adminCollect.domain.coupon.cancel;

public class CancelCodeMsg {
    private int retCode;
    private String message;
    // 按照模块定义CancelCodeMsg
    // 通用异常
    public static CancelCodeMsg SUCCESS = new CancelCodeMsg(0,"success");
    public static CancelCodeMsg SERVER_EXCEPTION = new CancelCodeMsg(500100,"服务端异常");
    public static CancelCodeMsg REPEATED_REQUEST = new CancelCodeMsg(10500,"重复请求!");


    public static CancelCodeMsg USER_NOT_EXSIST = new CancelCodeMsg(-1,"用户不存在");
    public static CancelCodeMsg USER_NOT_EXSIST_TO_RELOAD = new CancelCodeMsg(-5,"请重新登录");
    public static CancelCodeMsg STATION_STOP_USING = new CancelCodeMsg(-6,"该账户对应站点已停用");
    public static CancelCodeMsg STATION_NOT_EXIST = new CancelCodeMsg(-6,"该账户对应站点已删除或不存在");
    public static CancelCodeMsg ALREADY_SCANCODE = new CancelCodeMsg(-8,"该二维码已被扫用");
    public static CancelCodeMsg Network_Exception= new CancelCodeMsg(-7,"网络异常，请重新提交");
    public static CancelCodeMsg SCAN_EMPLOYEE= new CancelCodeMsg(-9,"请扫加油员码进入");


    public static CancelCodeMsg USER_EXSIST_CARD = new CancelCodeMsg(-1,"该用户暂无此卡");
    public static CancelCodeMsg USER_NOT_STATUS = new CancelCodeMsg(-3,"该用户已停用");

    public static CancelCodeMsg USER_EXSIST = new CancelCodeMsg(-1,"用户已存在");
    public static CancelCodeMsg NO_ORDER = new CancelCodeMsg(-2,"暂无此订单");
    public static CancelCodeMsg NO_PAY_ORDER = new CancelCodeMsg(-4,"暂无此订单或未支付");
    public static CancelCodeMsg CASH_ORDER_CANCEL = new CancelCodeMsg(-11,"现金订单取消");
    public static CancelCodeMsg NOT_CASH_ORDER_TYPE = new CancelCodeMsg(-12,"该现金订单已完成支付");
    public static CancelCodeMsg STATION_ORDER_ID_FIT = new CancelCodeMsg(-13,"该订单非该登录人所在油站");
    public static CancelCodeMsg CANCEL_CASH_ORDER = new CancelCodeMsg(-12,"该现金订单已取消");

    public static CancelCodeMsg ENABLE_AUTOMATIC_SCHEDULING = new CancelCodeMsg(-1,"该油站已开启自动班结");

    public static CancelCodeMsg SELECT_ORDER_ERROR = new CancelCodeMsg(-1,"此订单已完成支付，请重新下单");
    public static CancelCodeMsg BALANCE_NOT_EENOUGH = new CancelCodeMsg(-2,"电子卡余额不足");
    public static CancelCodeMsg PASSWORD_ERROR = new CancelCodeMsg(-2,"密码错误");
    public static CancelCodeMsg ACCOUNT_DISABLE = new CancelCodeMsg(-3,"该账号已被停用");
    public static CancelCodeMsg USERNAME_LEVEL_ERROR = new CancelCodeMsg(-7,"该账号非油站账号");
    public static CancelCodeMsg NO_FollowGzh = new CancelCodeMsg(-4,"未关注公众号");
    public static CancelCodeMsg USERGZHINFO_EXSIST = new CancelCodeMsg(-5,"系统暂无此用户公众号信息");
    public static CancelCodeMsg CHECK_DATA_ERROR = new CancelCodeMsg(-6,"数据不一致");
    public static CancelCodeMsg SEARCH_FAIL = new CancelCodeMsg(-1,"查询失败");
    public static CancelCodeMsg INSERT_FAIL = new CancelCodeMsg(001,"添加失败");
    public static CancelCodeMsg SEARCH_APPID_FAIL = new CancelCodeMsg(-1,"油企公众号配置不完善");
    public static CancelCodeMsg DELETE_FAIL = new CancelCodeMsg(003,"删除失败");
    public static CancelCodeMsg UPDATE_FAIL = new CancelCodeMsg(004,"修改失败");
    public static CancelCodeMsg REQUEST_FAIL = new CancelCodeMsg(-2,"必传参数不能为空");
    public static CancelCodeMsg YEWU_FAIL = new CancelCodeMsg(006,"业务失败");
    public static CancelCodeMsg BAIDUMAP_FAIL = new CancelCodeMsg(-2,"地理位置查询失败");
    public static CancelCodeMsg NO_CARDENABLEFLAG = new CancelCodeMsg(-2,"未启用电会员卡");
    public static CancelCodeMsg ALREADY_PAY = new CancelCodeMsg(-11,"该订单已支付完成");
    public static CancelCodeMsg STATION_NULL_INFO = new CancelCodeMsg(-2,"无此油站或该油站信息配置不完善");
    public static CancelCodeMsg ENTERPRISE_NULL_INFO = new CancelCodeMsg(-3,"无此油企或该油企信息配置不完善");
    public static CancelCodeMsg CHECK_DATA = new CancelCodeMsg(007,"与后台检验不一致，请联系……");
    public static CancelCodeMsg PARAMS_NUll = new CancelCodeMsg(-2,"请求失败，必传参数不能为空！");
    public static CancelCodeMsg WARSECOUNT_FAIL = new CancelCodeMsg(-1,"库存不足");
    public static CancelCodeMsg INTEGRAL_INSUFFICIENT = new CancelCodeMsg(-2,"您的积分不足");

    public static CancelCodeMsg USER_STATION_ERROR = new CancelCodeMsg(-4,"该用户非油站用户或用户与传入油站不是同一油站");


    public static CancelCodeMsg INTEGRAL_ERROR = new CancelCodeMsg(-3,"您的积分不足");

    public static CancelCodeMsg NO_USER_HAVE_GUN = new CancelCodeMsg(-4,"该登录账号没有绑定油站现有油枪");
    public static CancelCodeMsg MORE_PERSONNAL = new CancelCodeMsg(-6,"该油站或油枪未有绑定多个加油员");
    public static CancelCodeMsg NO_ENABLE_COUPON = new CancelCodeMsg(-5,"该油站暂未开启积分功能");


    //优惠券业务返回code
    public static CancelCodeMsg COUPON_INFO_ERROR = new CancelCodeMsg(-1,"");
    public static CancelCodeMsg COUPON_LOSE_EFFECTIVE = new CancelCodeMsg(-2,"优惠券已无效");
    public static CancelCodeMsg NO_COUPON = new CancelCodeMsg(-3,"该活动下已无可领取优惠券");
    public static CancelCodeMsg COUPON_GIVE_COUNT_MAX = new CancelCodeMsg(-6,"您当前该优惠券领取数量已达上限");
    public static CancelCodeMsg ISSUE_CLOSE = new CancelCodeMsg(-7,"该领取方式已关闭");
    public static CancelCodeMsg NO_COUPON_ISSUE = new CancelCodeMsg(-4,"暂无此领取方式");
    public static CancelCodeMsg NOT_GIVE_COUPON_TIME = new CancelCodeMsg(-8,"当前时间该领取方式暂未开启");
    public static CancelCodeMsg MORE_COUPON_TIME_END = new CancelCodeMsg(-2,"当前时间该领取方式已结束");
    public static CancelCodeMsg COUPON_NOT_COUPONTHRESHOLDAMT = new CancelCodeMsg(-10,"当前金额未达到优惠券使用门槛");
    public static CancelCodeMsg COUPON_NOT_CONTATINS_OILNAME = new CancelCodeMsg(-9,"当前优惠券不适用此油品");
    public static CancelCodeMsg COUPON_ISSUE_LEVEL = new CancelCodeMsg(-11,"您的等级不满足领取等级");
    public static CancelCodeMsg MORE_DRAW_TODAY = new CancelCodeMsg(-12, "您当日参与领取次数已达上限");
    public static CancelCodeMsg COUPON_NOT_ENOUGHT = new CancelCodeMsg(-13,"部分优惠券数量不足");
    public static CancelCodeMsg COUPON_GIVE_LIMIT_MAX = new CancelCodeMsg(-14,"您选择的优惠券数量超出可选数量");
    public static CancelCodeMsg ONCE_DRAW_TODAY = new CancelCodeMsg(-15,"该优惠券已经领取过了~");
    public static CancelCodeMsg COUPON_ISSUE_SUPER_LEVEL = new CancelCodeMsg(-16,"您不是超级会员暂时无法领取，可开通超级会员后领取");
    public static CancelCodeMsg COUPON_NEW_USER = new CancelCodeMsg(-17,"限新用户可领取");
    public static CancelCodeMsg COUPON_OLD_USER = new CancelCodeMsg(-18,"限老用户可领取");
    public static CancelCodeMsg COUPON_GIVE_LIMIT_MAX_NUM = new CancelCodeMsg(-19,"您选择的优惠券数量超出剩余可选数量");
    public static CancelCodeMsg MORE_DRAW_MONTH = new CancelCodeMsg(-20, "您当月领取次数已达上限");
    public static CancelCodeMsg NO_ISSUE = new CancelCodeMsg(-21,"活动已结束");

    public static CancelCodeMsg NO_ACTIVITY = new CancelCodeMsg(-22,"该用户名下没有优惠券");


    //优惠券核销

    public static CancelCodeMsg ERROR_VERIFICATION = new CancelCodeMsg(-1,"当前兑换券不能在此核销点核销！");
    public static CancelCodeMsg COUPON_VERIFICATION_USED = new CancelCodeMsg(-3,"当前兑换券已核销！");
    public static CancelCodeMsg NOT_COUPON_VERIFICATION = new CancelCodeMsg(-5,"当前优惠券不是异业兑换券！");
    public static CancelCodeMsg NOT_COUPON_VERIFICATION_USER = new CancelCodeMsg(-4,"当前登陆账号不是核销人员！");
    public static CancelCodeMsg COUPON_VERIFICATION_ERROR = new CancelCodeMsg(-10,"优惠券核销失败信息：");
    public static CancelCodeMsg ERROR_COUPON_DATE = new CancelCodeMsg(-2,"当前兑换券已过期");

    public static CancelCodeMsg NOT_A_CAR_WASH = new CancelCodeMsg(-11,"该站点没有洗车服务");

    public static CancelCodeMsg NO_CAR_WASH_TICKET = new CancelCodeMsg(-12,"该优惠券已使用");
    public static CancelCodeMsg CAR_WASH_TICKET_EXPIRED = new CancelCodeMsg(-13,"洗车券已失效");

    public static CancelCodeMsg TIME_IS_NOT_UP = new CancelCodeMsg(-13,"当前优惠券不在可用时间内");
    public static CancelCodeMsg CAN_BE_HERE = new CancelCodeMsg(-14,"该优惠券不能在此站点核销");
    public static CancelCodeMsg THERE_IS_NO_SUCH_WRITE_OFF = new CancelCodeMsg(-15,"无此核销券");
    public static CancelCodeMsg NOT_CERTIFICATE = new CancelCodeMsg(-16,"该券不是兑换券");
    public static CancelCodeMsg THIS_COUPON_IS_INVALID = new CancelCodeMsg(-17,"该优惠券已无效");
    public static CancelCodeMsg SITE_AND_PERSONNEL_ARE_INCONSISTENT = new CancelCodeMsg(-18,"该优惠券站点与核销人员不一致");


    //POS班结
    public static CancelCodeMsg NO_CLASS_NO_INFO = new CancelCodeMsg(-1,"无此班结号班结记录");

    //
    public static CancelCodeMsg NOT_PAYWAY = new CancelCodeMsg(-2,"当前油站暂无此支付方式");
    public static CancelCodeMsg ERROR_DEVICE_USER = new CancelCodeMsg(-5, "当前登录账号非该油站POS设备账号");

    //判断版本
    public static CancelCodeMsg ERROR_VERSION_INFO = new CancelCodeMsg(-9, "请更新APP版本");

    public static CancelCodeMsg ADD_PAY_ORDER = new CancelCodeMsg(-11, "创建订单失败");
    //******激活微信卡券业务码开始*****************************************************************************************************************//

    public static CancelCodeMsg NO_CARD_ID_ENTERPRISE = new CancelCodeMsg(-1, "该卡券ID没有对应的企业");
    public static CancelCodeMsg ACTIVATE_CARD_ERROR = new CancelCodeMsg(-2, "激活卡失败");
    public static CancelCodeMsg ACTIVATE_TICKET_ERROR = new CancelCodeMsg(-3, "使用activate_ticket获取用户开卡时提交失败");
    public static CancelCodeMsg COMMON_FIELD_LIST_ERROR = new CancelCodeMsg(-4, "使用activate_ticket获取用户开卡时common_field_list为空");
    public static CancelCodeMsg USER_FORM_INFO_FLAG_MOBILE_ERROR = new CancelCodeMsg(-5, "使用activate_ticket获取用户开卡时没有user_form_info_flag_mobile");
    public static CancelCodeMsg ENCRYPT_CODE_ERROR = new CancelCodeMsg(-6, "解密encrypt_code获取code失败");
    public static CancelCodeMsg CARD_INFO_TO_ACTIVATE_ERROR = new CancelCodeMsg(-7, "获取激活卡券时所用到卡信息失败");
    public static CancelCodeMsg MEMBERCARD_USER_INFO_ERROR = new CancelCodeMsg(-8, "使用code和cardId拉取会员卡信息信息失败");
    public static CancelCodeMsg MEMBERCARD_INFO_NOT_EXIST = new CancelCodeMsg(-9, "拉取会员卡信息中没有info字段");

    public static  CancelCodeMsg WX_REQUEST_FAIL = new CancelCodeMsg(-13, "微信请求结果信息");

    public static CancelCodeMsg THIRD_PART_AUTHORIZE_FAIL = new CancelCodeMsg(-14,"第三方授权失败");

    //*******激活微信卡券业务码结束****************************************************************************************************************//

    //******随行付支付业务码开始*****************************************************************************************************************//
    
//    public static CancelCodeMsg TRADE_REVERSE_PAY_SUCCESS = new CancelCodeMsg(0, "随行付-支付成功");
    
//    public static CancelCodeMsg TRADE_REVERSE_PAY_FAIL = new CancelCodeMsg(50001, "随行付-支付失败");
    
    /**
     * 随行付-支付中
     */
    public static CancelCodeMsg TRADE_REVERSE_PAY_WAIT_MINUTE = new CancelCodeMsg(50002, "随行付-支付中");
    
    //******随行付支付业务码开始*****************************************************************************************************************//


    public CancelCodeMsg(int retCode, String message) {
        this.retCode = retCode;
        this.message = message;
    }
    public int getRetCode() {
        return retCode;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
}
